/* 科幻风格CSS */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Exo+2:wght@300;400;600&display=swap');

:root {
    --sci-fi-primary: #00f3ff;
    --sci-fi-secondary: #ff00c8;
    --sci-fi-accent: #00ff9d;
    --sci-fi-bg: #0a0e17;
    --sci-fi-card-bg: #121a2a;
    --sci-fi-text: #e0f7ff;
    --sci-fi-border: rgba(0, 243, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', 'Microsoft YaHei', sans-serif;
    background: var(--sci-fi-bg);
    color: var(--sci-fi-text);
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 243, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 200, 0.05) 0%, transparent 20%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    position: relative;
}

.header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--sci-fi-primary), var(--sci-fi-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(224, 247, 255, 0.7);
    font-weight: 300;
}

.upload-section, .download-section {
    background: var(--sci-fi-card-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--sci-fi-border);
    position: relative;
    overflow: hidden;
}

.upload-section::before, .download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--sci-fi-primary), var(--sci-fi-secondary));
    box-shadow: 0 0 10px var(--sci-fi-primary);
}

.upload-section h2, .download-section h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--sci-fi-primary);
    margin-bottom: 25px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.placeholder {
    text-align: center;
    padding: 40px 20px;
    border: 2px dashed var(--sci-fi-border);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.placeholder:hover {
    border-color: var(--sci-fi-primary);
    background: rgba(0, 243, 255, 0.05);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5));
}

.file-picker-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--sci-fi-primary), var(--sci-fi-accent));
    color: var(--sci-fi-bg);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3);
}

.file-picker-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 243, 255, 0.5);
}

.file-picker-btn.secondary {
    background: transparent;
    color: var(--sci-fi-primary);
    border: 2px solid var(--sci-fi-primary);
    box-shadow: none;
}

.drag-text {
    color: rgba(224, 247, 255, 0.7);
    font-size: 1.1rem;
}

.statusBar {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--sci-fi-border);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: rgba(224, 247, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sci-fi-primary), var(--sci-fi-accent));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
    box-shadow: 0 0 10px var(--sci-fi-primary);
}

.progress-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--sci-fi-primary);
    min-width: 50px;
    text-align: right;
}

.info {
    text-align: center;
    margin: 15px 0;
    font-weight: 500;
    min-height: 24px;
}

.btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.sci-fi-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--sci-fi-primary), var(--sci-fi-accent));
    color: var(--sci-fi-bg);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3);
}

.sci-fi-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 243, 255, 0.5);
}

.sci-fi-btn.download-link {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.file-list {
    list-style: none;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(224, 247, 255, 0.1);
    transition: background 0.3s ease;
}

.file-item:hover {
    background: rgba(0, 243, 255, 0.05);
}

.file-name {
    flex-grow: 1;
    font-size: 1.1rem;
}

.no-files {
    text-align: center;
    color: rgba(224, 247, 255, 0.5);
    font-style: italic;
    padding: 30px;
}

.error-message {
    background: linear-gradient(45deg, rgba(255, 0, 128, 0.2), rgba(255, 0, 200, 0.2));
    border: 1px solid var(--sci-fi-secondary);
    color: var(--sci-fi-secondary);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 0 15px rgba(255, 0, 200, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .upload-section, .download-section {
        padding: 20px;
    }
    
    .btns {
        flex-direction: column;
        gap: 10px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sci-fi-btn.download-link {
        align-self: flex-end;
    }
}